Synchronizing the storing of streaming video

ABSTRACT

A method and device for communicating video for synchronization between a portable wearable camera and a wireless hub device are described. The portable wearable camera may capture first video data. Also, the portable wearable camera may transmit the first video data to the wireless hub device via a video data channel, and may capture second video data. When the video data channel between the wearable camera and the wireless hub device is unable to support full resolution video playback, the portable wearable camera may store the second video data. Further, the portable wearable camera may receive a request via a control channel, from the wireless hub device, for the second video data, and may capture third video data. Further, the portable wearable camera may transmit, to the wireless hub device, the third video data via the video data channel and the second video data via the control channel.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to U.S. patent application Ser. No.17/201,164 filed on Mar. 15, 2021, which claims priority to U.S. patentapplication Ser. No. 16/777,464 filed on Jan. 30, 2020, which issued asU.S. Pat. No. 10,951,936 on Mar. 16, 2021, which claims priority to U.S.patent application Ser. No. 15/796,144 filed on Oct. 27, 2017, whichissued as U.S. Pat. No. 10,659,829 on May 19, 2020, which claimspriority to U.S. patent application Ser. No. 14/512,174 filed on Oct.10, 2014, which issued as U.S. Pat. No. 9,832,498 on Nov. 28, 2017,which claims priority to U.S. patent application Ser. No. 13/911,212filed on Jun. 6, 2013, entitled “Synchronizing the Storing of StreamingVideo,” which issued as U.S. Pat. No. 8,863,208 on Oct. 14, 2014, whichclaims the benefit of U.S. Provisional Patent Application No. 61/680,259filed on Aug. 6, 2012, entitled “Method for Synchronizing the Storing ofStreaming Video,” and U.S. Provisional Patent Application No.61/660,953, filed on Jun. 18, 2012, entitled “Method for Synchronizingthe Storing of Streaming Video,” all of which are hereby incorporated byreference in their entirety for all purposes.

BACKGROUND

Network camera systems can be based on Internet protocol (IP) and useEthernet based networking technology. In some applications, networkcamera systems are replacing analog closed circuit television (CCTV) dueto various factors, such as accessibility, ease-of-use, cablingscalability, and lower cost of deployment and operation. With theubiquity of wireless networks such as WiFi networks (based on IEEE802.11 standards) and the emerging WiMAX networks (based on IEEE 802.16standards), wireless network camera systems are gaining popularity andmay become the dominant platform for video surveillance applications.

In an IP surveillance environment, a network camera system can includeIP cameras connected via twisted pair cabling to a network switch.Alternatively, the network connection can be achieved using wirelesslocal area networking (LAN) technology standard. In variousapplications, IP cameras can include a web-server capability and remoteclients or observers connected to the camera via standard TCP/IPinterface standards such as FTP or HTTP.

Real-time streaming of video can also be an important function for avideo surveillance environment. A remote viewer viewing the video maywish to have minimal delays in watching the captured video in order tobe able to respond to a situation more clearly. Real-time streaming alsohas other applications. For example, sports enthusiasts often wish towatch a sporting event in real-time so as to enable up-to-dateinformation regarding the event.

SUMMARY

The current disclosure describes a method, network camera system, andcomputer-readable medium for synchronizing storing of video. The methodincludes capturing video data with a camera. The video data includes afirst video data segment and a second video data segment. When a networkbetween the camera and a hub is insufficient to allow downstreamreal-time streaming of the video data, the first video data segment isstored on a first storage. When the network between the camera and thehub is sufficient to allow downstream real-time streaming of the videodata, the method/system/medium (i) transfers the second video datasegment from the camera to the hub over the network, (ii) reads thefirst video data segment from the first storage, and (iii) transfers thefirst video data segment to the hub over the network. The first videodata segment and the second video data segment are stored on a secondstorage such that a non-real-time playback from the second storage showsthe first video data segment and the second video data segment insequence.

Another method, device, and computer-readable medium for synchronizingvideo are described. The method includes a wearable camera capturingfirst video data. Also, the wearable camera timestamps the first videodata and organizes the first video data using a hash table. Then, thewearable camera transmits the first video data to a wireless hub via afirst wireless connection. In addition, the wearable camera capturessecond video data. When the first wireless connection between thewearable camera and the wireless hub is unable to support fullresolution video playback, the wearable camera down-converts the secondvideo data, timestamps the second video data and organizes the secondvideo data using the hash table. The wearable camera then transmits thesecond video data to the wireless hub. Moreover, the first video dataand the second video data are synchronizable according to gapsynchronization based on one or more timestamps of the first video dataand one or more timestamps of the second video data.

In a further example, the wearable camera may receive a request of videoblocks not received at full resolution by the wireless hub. In anotherexample, the wearable camera may transmit at least one of the requestedvideo blocks at full resolution. In an additional example, the requestedvideo blocks may be video blocks of first video data. Additionally oralternatively, the requested video blocks may be video blocks of secondvideo data.

In another example, the second video data may be transmitted withoutreceiving a request from the wireless hub. Also, the second video datamay be transmitted via the first wireless connection.

In a further example, the second video data may be transmitted via asecond wireless connection. Also, the first wireless connection may bemore time sensitive than the second wireless connection.

In an additional example, the wearable camera may transmit the firstvideo data to a remote client for playback using a keyframe index. Also,the wearable camera may cause playback of the first video data at a fastrate by skipping frames based on the keyframe index.

A further method and device for communicating video for synchronizationbetween a portable wearable camera and a wireless hub device aredescribed. The portable wearable camera may capture first video data.Also, the portable wearable camera may transmit the first video data tothe wireless hub device via a first wireless connection, and may capturesecond video data. When the first wireless connection between thewearable camera and the wireless hub device is unable to support fullresolution video playback, the portable wearable camera may store thesecond video data. Further, the portable wearable camera may receive arequest from the wireless hub device for the second video data via asecond wireless connection, and may capture third video data. Further,the portable wearable camera may transmit, to the wireless hub device,the third video data via the first wireless connection and the secondvideo data via the second wireless connection.

In another example, the first video data, the second video data and thethird video data may be timestamped using a hash table. In an additionalexample, the first video data, the second video data and the third videodata are synchronizable according to gap synchronization based on one ormore timestamps of the first video data, one or more timestamps of thesecond video data and one or more timestamps of the third video data.

Moreover, the first wireless connection may be more time sensitive thanthe second wireless connection. Also, the wireless hub device may beoperable while located within a car. The car may be a law enforcementcar, a police car or a squad car. Additionally, the third video data maybe transmitted responsive to a detection that the first wirelessconnection has become able to support full resolution videotransmission.

A yet further method and device for communicating video forsynchronization between a portable wearable camera and a wireless hubdevice are described. The portable wearable camera may capture firstvideo data. Also, the portable wearable camera may transmit the firstvideo data to the wireless hub device via a video data channel, and maycapture second video data. When the video data channel between thewearable camera and the wireless hub device is unable to support fullresolution video playback, the portable wearable camera may store thesecond video data. Further, the portable wearable camera may receive arequest via a control channel, from the wireless hub device, for thesecond video data. The portable wearable camera may capture third videodata. Further, the portable wearable camera may transmit, to thewireless hub device, the third video data via the video data channel andthe second video data via the control channel.

Additionally, the video data channel may be more time sensitive than thecontrol channel. Moreover, the third video data may be transmittedresponsive to a detection that the video data channel has become able tosupport full resolution video transmission.

The present invention is better understood upon consideration of thedetailed description below in conjunction with the accompanying drawingsand claims

DESCRIPTION OF DRAWINGS

FIG. 1 is a functional diagram of an exemplary network camera systemaccording to an embodiment;

FIG. 2 is a functional diagram of an exemplary hub according to anembodiment;

FIG. 3 is a functional diagram of an exemplary wireless camera accordingto an embodiment;

FIG. 4 is a process overview flowchart according to an embodiment;

FIG. 5 is a flow diagram of an exemplary storage method according to anembodiment;

FIG. 6 is a flow diagram of an exemplary method of synchronizing thestoring according to an embodiment; and

FIG. 7 is a flow diagram of an exemplary method of playback according toan embodiment.

DETAILED DESCRIPTION

The invention generally relates to network camera systems and storingcaptured video data. The current disclosure describes a method, networkcamera system, and computer-readable medium for synchronizing storing ofvideo. The method includes capturing video data with a camera. The videodata includes a first video data segment and a second video datasegment. When a network between the camera and a hub is insufficient toallow downstream real-time streaming of the video data, the first videodata segment is stored on a first storage. When the network between thecamera and the hub is sufficient to allow downstream real-time streamingof the video data, the method/system/medium (i) transfers the secondvideo data segment from the camera to the hub over the network, (ii)reads the first video data segment from the first storage, and (iii)transfers the first video data segment to the hub over the network. Thefirst video data segment and the second video data segment are stored ona second storage such that a non-real-time playback from the secondstorage shows the first video data segment and the second video datasegment in sequence. The storing may include constructing a hash tablethat catalogs and relates the video data segments to respective timesegments.

The first video data segment may be transferred over the network on afirst channel. The second video data segment may be transferred over thenetwork on a second channel that is more time-sensitive than the firstchannel.

The method may further include displaying a copy of the second videodata segment to a viewer in real time during the transferring of thesecond video data segment. The displaying may include transferring thecopy of the second video data segment over a display network. Thedisplaying may also include determining a bandwidth of the displaynetwork. Based on the bandwidth of the display network, the displayingmay also include reducing a full resolution of the second video datasegment to make the copy of the second video data segment that isdisplayed to the viewer.

When the network has sufficient bandwidth for real-time streaming of thevideo data, the hub may send control data to the camera requesting thesteps of reading the first video data segment and transferring the firstvideo data segment.

The method may further include creating a keyframe index during thestoring. When a playback position is requested and the playback positiondoes not exist in the second storage, the method may use the keyframeindex to find a next decodable video data, the next decodable video databeing stored in the second storage.

The network camera system includes a camera and a hub. The camera isconfigured to capture video data including a first video data segmentand a second video data segment. The camera stores the first video datasegment on a first storage when the network camera system is unable toprovide for real-time streaming of the video data. When the networkcamera system is able to provide for real-time streaming of the videodata, the camera transfers the second video data segment to a hub overthe network, reads the first video data segment from the first storage,and transfers the first video data segment to the hub over the network.The hub is configured to store the first video data segment and thesecond video data segment onto a second storage. A non-real-timeplayback from the second storage shows the first video data segment andthe second video data segment in sequence. The computer-readable mediumstores instructions, which, when executed by a processor, causes anetwork camera system to execute the methods described herein.

Embodiments of the present invention provide for synchronizing thestoring of streaming video from a camera, for example, a wirelesscamera. Although any communication network can be used to transmit datato and from the camera, wireless networks such as WiFi networks (basedon IEEE 802.11 standards) and WiMAX networks (based on IEEE 802.16standards) can realize additional benefits from embodiments for reasonsdiscussed below. Therefore, although embodiments are described below inwireless environments, the skilled artisan will understand thatembodiments can be applied to both wired and wireless communicationnetworks.

When a wireless channel exhibits excessive data traffic or loss ofsignal, transmission of camera video data to a hub may be interrupted.In other situations, a wireless link between the camera and the hub maybe interrupted due to movement of a portable camera or change in theenvironment where a camera is mounted. Attenuation, interference, andmultipath are all factors which may lead to signal loss or corruption.Other factors may lead to a break in reliable video data transmissionfrom the camera to the hub such that video data may not be transmittedin real-time. For example, a network between the camera and the hub maybe shared by other nodes that compete with the camera and hub forbandwidth. In another example, devices supporting the network (such as arouter, switch, hub, or firewall) may become overloaded or otherwisefail to process data at or above the speed at which the data is receiveor expected to be transmitted. In these scenarios, the network maybecome insufficient for allowing real-time video streaming.

When an interruption occurs, a user watching the camera's video in realtime will experience a gap or break in the viewed video. The gap orbreak may be shown as a frozen frame, a blank screen, a messagecommunicating that transmission has been interrupted, or the like.

In response, software located in the hub, for example, can monitor thewireless channel between the camera and the hub to determine when it isrestored. When that channel is again robust and able to support videodata transmission, the software reads lost video data (from the timewhen communication was disrupted) from a storage device located on thecamera (e.g., a flash memory) and saves it within the camera video datapreviously stored at the hub. It is stored in a manner such that whenreviewed later, the displayed video is continuous and withoutinterruption.

FIG. 1 is a functional diagram of an exemplary network camera system 100according to an embodiment. The network camera system 100 may include aplurality of wireless cameras 110, a first software application, and asecond software application. Although multiple wireless cameras 110 areshown, the system also supports a single video capture device. Thewireless video cameras 110 are connected to a network 112 at a distance,for example, exceeding nine (9) meters. The wireless cameras 110 mayoptionally communicate with one another over the network 112. Thenetwork 112 can be a wireless network (e.g., a Bluetooth connection, acellular network, a wireless Ethernet network, a WiFi network, or aWiMAX network) or a wired network (e.g., LAN/WAN network or POEnetwork). The wireless cameras 110 may include a first mechanism tocapture and transmit live video in real-time to the first and/or secondsoftware application, and a first video record/database 120 ofpreviously captured video.

A hub 114 may be utilized to monitor data on a first wireless channelC101 between the hub 114 and the wireless cameras 110. The hub 114 mayalso monitor data on a second wireless channel C102-C105 between the hub114 and the wireless cameras 110, using this second channel C102-C105for command and control and for copying recorded data from the cameras110. The cameras may be located physically away from the hub 110 up toany distance in which the cameras 110 can still access the network, oreven beyond the maximum network access distance. The cameras 110 may beremotely mounted or portable, such as a wearable camera. In normaloperation, the cameras 110 record video data which may be (i) stored onthe cameras 110, for example in the first video record database 120, orstored proximally closer to the cameras, for example in an externalstorage device that can be connected to the cameras, and (ii)transmitted to the hub 114 where the video data is stored and is alsomade optionally available for viewing by a user in real-time.

The terms “real-time” and “real time” are used herein as understood inthe art. For instance, the skilled artisan will recognize that real-timestreaming does not require that the viewer receives and is able to viewvideo data at the exact instant it is captured, but substantiallyinstantly, taking into account the delays from transmission in physicalmedia and space, processing, and other constraints of the system.

Embodiments may include a first software application and a secondsoftware application. The wireless video camera may be connected to awireless network at a distance exceeding, for example, nine (9) meters.The first software application is in communication with the wirelesscamera and the second software application through the network(s). Thewireless camera includes a first mechanism to capture and transmit livevideo in real-time to the first and/or second software application, anda first video record/database of video which is previously capturedvideo, whose time duration is a function of the configured storagecapability of the camera. The first software application also collectsthe recorded video from the camera according to a usage model for theend application. The end application will choose to manage thecollection of the recorded video depending on wireless bandwidth whichaffects the ability to collect the information simultaneously with livevideo.

The first software application also contains a second mechanism thatdetermines the integrity of the match between the first videorecord/database and the second video record/database such that thesecond video record/database is substantially the same as the firstvideo record/database. The second software application is connected tothe second video record/database and allows viewing of the live videoin-real time as well as viewing of the second video record/databasecontrolled by the first software application.

The first video record/database 120 is an example of a first storage.The first video record/database 120 can be a memory device such as aflash memory, hard disk, floppy disk, magnetic tape, or any other memorydevice or collection of memory devices that is/are connected to thecamera. The first video record/database 120 may include a non-volatilesecondary memory in order to persist data across power cycles of thecamera, although volatile primary memory can also suffice. The firstvideo record/database 120 is shown as part of each wireless camera 110as an internal memory, but the first video record/database 120 can alsoinclude an attached external storage device, for example, a networkattached storage (NAS), a remote database, a cloud storage, and/or ashared memory device connected to a data bus.

The first mechanism can also request data stored on the first videorecord/database 120 that may not have previously been successfullytransmitted, for example, in a live stream. This video data is mergedinto the local copy of the camera video recording such that a playbackfrom this recorded video is seamless in the time axis. Wireless cameras110 transmit data over the wireless network 112 to a hub 114, which isoptionally located in a base station, via a channel C101-C105. Althoughfive channels are shown, the system may have more or less channels. Thewireless cameras 110 may also be associated with multiple hubs or basestations. Optionally, the first and second software applications may bein a cloud/server located physically away from the wireless cameras 110and the hub 114.

Depending on the camera's hardware and software capabilities, video canbe captured, recorded, and/or transmitted at a resolution deemedacceptable for the system. For example, to conserve channelcommunications bandwidth, the video may be streamed at a lowerresolution than what is recorded. Recorded data can be transmitted tothe hub 114 on a back channel that is not as time sensitive as livevideo when the resolution is higher than the live stream. For example,the back channels C102-C105 may have lower priorities than thetime-sensitive live video channel C101. The first and/or second softwareapplication may decide on the system's optimal configuration for livevideo mixed with the desire for higher resolution playback, utilizingthe available channel bandwidth on the wireless network 112.

In this model, the cameras 110 can be configured to record at adesirable resolution the cameras can support, and the image resolutionstreamed may or may not be the same as the recorded resolution. The hub114 can create a copy of the video, for example at a lower resolution,presented by the cameras 110, and can make decisions on when the hub 114needs to request recorded video from the cameras 110 for integrationinto the copy of the video stream. This allows the system 100 tooptimize video playback while retaining a recording in a desiredresolution that can be used for playback.

The first software application may communicate with the wireless cameras110 and the second software application through wireless networks 112,116. In one embodiment, the first software application runs on hub 114.Hub 114 is configured to receive information from the wireless cameras110 and has one or more potential communication channels over thenetwork 112. In this example, the network 116 can be a display networkthat connects hub 114 with a remote client 118 through a wirelessnetwork (e.g., a Bluetooth connection, a cellular network, a wirelessEthernet network, a WiFi network, or a WiMAX network) or a wired network(e.g., LAN/WAN network or POE network).

Remote client 118 may be a device such as a mobile phone, personaldigital assistant (PDA), smartphone, laptop, computer, or any otherdevice that allows for viewing of the captured or recorded video. Thesecond software application may run on remote client 118 to provide auser with access to the video.

In one embodiment, hub 114 processes the video data received from thewireless cameras 110. In another embodiment, hub 114 can be one or moredevices, such as a group of computers receiving and processing the videodata as a wireless base station. Hence, the computers may function asthe base station or hub 114 as well as the remote client 118.

The first software application controls the transfer of the live videoand portions of the first video record/database 120 to compile a secondvideo record/database 122. The second video record/database 122 can becollocated with the hub 114 or may be remotely located, for example, ina separate database, server, or cloud.

FIG. 2 is a functional diagram of a hub 214 according to an embodiment.In this embodiment, the hub 214 receives information such as video datafrom a wireless camera (not shown in FIG. 2 ) over a transmissionchannel C201. The hub 214 transmits commands and controls to thewireless camera over a transmission channel C202, using, for example, RFsignals. The hub 214 also has temporary memory storage hardware 224 usedto cache the information received from the wireless camera over anetwork.

The hub 214 can use any network protocol that allows for streaming thevideo data from the wireless camera to the hub 214 to a remote client(not shown in FIG. 2 ). In one embodiment, the hub 214 uses Real TimeStreaming Protocol (RTSP), a network control protocol designed for usein communications systems to control streaming media servers. Theprotocol is used to establish and control media sessions between endpoints such as the hub 214 and the remote client. RTSP server software226 residing on the hub 214 receives and processes commands from theremote client. The remote client (controlled by a user or automated) mayissue VCR-like commands, such as play, rewind, pause, and trick modes(fast forward, fast reverse, etc.) to facilitate real-time control ofplayback of video data from the hub 214. The remote client can accessthe hub 214 through a network 216 and can proxy the RTSP interface to anuplink over which information is accessed. Provisioning is made formedia sessions to present the video stream in different resolutions,allowing the end application, the hub, or both to choose the resolutionas desired or allowed by the system. Transcoding of stored video to aresolution selected by the RTSP session can be performed by the hub 214(if stored in storage 224) or by the wireless cameras (if stored in acamera-side storage).

FIG. 3 is a functional diagram of an exemplary wireless camera 310according to an embodiment. In this embodiment, a radio receiver (notshown in FIG. 3 ) of the wireless camera 310 receives command andcontrol information from a hub (not shown in FIG. 3 ) over transmissionchannel C302, and a radio transmitter of the wireless camera 310 sendsdata corresponding to video captured by the wireless camera 310 to thehub over transmission channel C301, using, for example, RF signals.Temporary memory storage hardware 320 can be used to cache theinformation recorded for later retrieval. For example, when a wirelesslink between the hub and wireless camera 310 is interrupted or of poorquality or has insufficient bandwidth to support video streaming, thewireless camera 310 caches video data in the storage 320 until thewireless link can handle video streaming and requests or retrieves thecached video data from the storage 320. RTSP server software 328implements the command/control requests for video, such as play, rewind,pause, and trick modes (e.g., fast forward, fast reverse, etc.). A dataservice 330 can retrieve video data from the storage 320 upon requestand store video data into the storage 320 when the wireless link is downor otherwise unable to support streaming video.

FIG. 4 is a process overview flowchart 400 according to an embodiment. Ahub can function as an RTSP server 414. RTSP provides the ability topresent the video stream and the command and control of the videothrough an Application Programming Interface (API) that is ubiquitous inthe art. An RTSP connection to the hub may be routed through a ControlUnit Device (CUD) (not shown) and may be used to provide viewers withreal time/interactive access to the video data. The CUD can alsotransfer the video from the hub to an archival server (not shown) via adata service.

The hub may monitor a wireless link (that enables, for example, an MPEGtransport stream) to the wireless camera, receive video data from thewireless camera, and organize the video data as a time linear buffer ofvideo based on timestamps attached to video data segments received fromthe wireless camera. The wireless link between the hub and the wirelesscamera may be interrupted for a variety of reasons such as excessivedata traffic, changes in environmental factors, or the like. During sucha condition, the video data segments received from the wireless cameramay have gaps in the video in the time axis. The storage organization ofthe video data can account for this by constructing a hash table thatcatalogs and relates video data segments stored in memory to theirrespective time ranges for playback. When the wireless link is active orotherwise able to transmit a live stream again, the hub retrieves and/orthe camera transmits the missing blocks of video data that have beencached on the camera to construct a complete set of video data segmentsthat are stored in a location accessible by the hub for playback.

In one embodiment, the video data segments stored on the hub aretemporal, and will be sent to the CUD for transmission to its archivalsystem (not shown in FIG. 4 ) via the data service 422. For example, thehub can temporarily record the video data segments 430 (while they arebeing sent in a live stream over wireless 432) in a circular file buffer434. The data service 422 can receive video data segments 438 from thecircular file buffer 434 to send to the archival system. The dataservice 422 can also retrieve the video data segments from the archivalsystem upon request 440. Once the video data segments are sent to theCUD, they are eventually removed from the hub to free up storage for newvideo data segments. This same storage management policy can existbetween the wireless camera and the hub.

The wireless cameras can constantly record video in a circular buffer442. When the wireless link to the hub is active and can supportrequested streaming video, the cameras stream the live video to the hubas well. Alternatively, to save memory write cycles, the cameras can beconfigured to not write the captured video data into the cameras'circular buffers when the data is successfully streamed. In thisalternate configuration, the cameras store only the video data segmentsthat were not successfully transmitted. The video data segments aretransmitted as a Moving Picture Experts Group (MPEG) transport stream436, so timestamps in the video data segments allow the hub to keeptrack of missing video. When the hub receives the MPEG transport stream,it monitors the Presentation Time Stamps (PTS) in the stream and usesthese to determine which time segments are missing from the recording.In a pull scheme, the hub queries the wireless camera data service toretrieve the missing video in order to fill in the blanks in its videocache. Alternatively, the system can be configured in a push scheme inwhich the wireless camera transmits any cached video once it detectsthat the network supports transmission.

The system can have a mechanism for down-converting the video. Forexample, a viewer may request to watch video only in 360 p although thecameras may be recording in 1080 p. Alternatively, the system mayautomatically detect that the communication networks are unable tosupport live streams in the full resolution captured. In one embodiment,the wireless cameras down-convert the video quality before they aretransmitted to the hub. This allows the system to operate and deliverlower-resolution live streams when the communication network between thecameras and the hub are unable to support full resolution, and then thesystem can later deliver the full resolution video for later playback.However, this requires additional processing by the camera and thus maynot be ideal for cameras with portable power supplies. Thus, as onealternative, the system may have one or more processing devices externalto the cameras, but attached to the first video record/database: acamera-side processor. The camera-side processor is responsible fordown-converting the video data segments prior to being lodged into theMPEG transport stream for real-time streaming. As another alternative,the cameras may transmit the full resolution to the hub; the hub is thenresponsible for down-converting the received video prior tolive-streaming the video to the requesting viewer(s).

The hub can synchronize the storing of the video to create a seamlessvideo playback experience. The first software application can include asecond mechanism that determines the integrity of the match between thefirst video record/database and the second video record/database suchthat the second video record/database is substantially the same as (or,if there are multiple cameras, a sum of) the first videorecord/database(s). This may optionally be used for evidentiary or legalpurposes. When the wireless link between the wireless camera and the hubis interrupted, gaps in the video exist in the hub's copy of therecording from the time the wireless link was interrupted until the timethe wireless link is re-established, and the hub is again receiving thelive stream from the wireless camera. The hub can manage two processingaspects when this condition exists. First, the hub contacts the wirelesscamera data service and requests the video blocks for the time rangeover which gaps exist. Second, as the hub's RTSP server is feeding videoto remote clients and the playback position comes to a gap, the RTSPserver uses a keyframe index to find the next decodable location in thedata that has been stored which can be sent to a video player forseamless decoding. The keyframe index is created by the hub as itrecords the video on the memory.

As an alternative to the first processing aspect of the hub, thewireless cameras can detect which video data segments were and were notsuccessfully transmitted to the hub (for example, the wireless camerasmay receive TCP ACKs)—in this situation, the wireless cameras can beconfigured to send the segments that were not successfully transmittedto the hub, without having to await a request from the hub.

The keyframe index is also used to support trick mode playback. In orderto playback the video at higher speeds, the RTSP server must skip framesthat it sends to the video player. It does this by using the keyframeindex to know where to seek to in the video data buffer, and thenselecting the amount of data necessary for a decoder to completelyresolve a video frame for playback. By skipping over frames andinter-frame data, the video illusion of fast motion playback is createdwhen these frames are rendered on the screen for the user.

In one embodiment, the second software application or remote client, isconnected to the second video record/database and allows viewing of thelive video in-real time as well as viewing of the second videorecord/database controlled by the first software application.

FIG. 5 is a flow diagram of an exemplary storage method according to anembodiment. After the system starts at 500, the wireless camerascontinuously capture video at 502 during the entire method. The system(either the hub, the wireless cameras, or another mechanism of thesystem) determines whether the network allows downstream real-time videostreaming at S504. If so, the cameras transmit captured video over thenetwork from the cameras to the hub at S508 for real-time streaming andthe hub stores the received video on the second video record/databasestorage at S510. Then, the cameras determine if there are video datasegments queued on the camera (or, as described above, if video datasegments stored on the camera have not been successfully transmitted) atS512. If so, the cameras transmit queued video data segments from thecamera to the hub at S514 and the hub proceeds to store the transmittedvideo on the second video record/database storage at S510. After thereal-time and back-queued video data segments are stored by the hub onthe second storage at S510, the system again makes a determination as towhether the network allows downstream real-time video streaming at S504.

If the network does not allow downstream real-time video streaming atS504, then the wireless cameras can store the captured video on thefirst video record/database storage at S506. Alternatively, as describedabove, if the cameras are already configured to store video datasegments irrespective of whether the video data segments aresuccessfully received by the hub, then the cameras may instead mark theunsuccessfully transmitted video data segments so as to later transmitthem (e.g., at S514). After either storing or marking the captured videoon the first video record/database at S506, the system continues to makea determination as to whether the network allows downstream real-timevideo streaming at S504.

FIG. 6 is a flow diagram of an exemplary method of synchronizing storingaccording to an embodiment. The method illustrated in FIG. 6 can providemore details for step S510 in FIG. 5 , and can be considered an exampleof some functional aspects of the first software application. The methodcan be performed by the hub. As the method starts at S600, the hubreceives transmitted video from the cameras at S602. The hub thenlocates the timestamps in the transmitted video at S604. Based on thetimestamps in the video, the hub may determine whether the transmittedvideo data segments should be synchronized to gaps in the video data atS606. The hub then stores the transmitted video data segments in thesecond video record/database storage according to the gapsynchronization at S608. Here, the hub can also determine that thetransmitted video data segments do not correspond to gaps in the videodata and the video data segments are instead appended to the video datastored in the second video record database. In either case, thetransmitted video data segments are stored in the second videorecord/database storage such that a subsequent playback from the secondstorage shows the video data segments in sequence. After the transmittedvideo is stored, the cycle repeats.

FIG. 7 is a flow diagram of an exemplary method of playback according toan embodiment. The method can be considered an example of somefunctional aspects of the second software application. As the methodstarts at S700, the system (for example, the RTSP server on the hub)receives a playback request from the viewer at S702. The RTSP serverdetermines whether the playback request is for real-time video, forexample, by inspecting a flag in the request or by comparing therequested target time with the current video timestamps at S704. If therequest is for real-time video, the system determines whether themaximum (or requested) video resolution is supported over the networksat S706. These networks include both the network between the cameras andthe hub and the network between the RTSP server and the viewer. If thenetworks support the maximum (or requested) video resolution, then thesystem transmits a live stream at maximum (or requested) videoresolution to the viewer at S708, according to above-described methods.If the networks do not support the maximum (or requested) videoresolution, then the system down-converts the video resolution to aresolution supported by the networks and transmits the down-convertedvideo to the viewer at S710, according to above-described methods.

If the playback request is not for real-time video at S704, then the hubdetermines whether the requested video is on the second videorecord/database storage at S712. If so, then the method proceeds to stepS706. If not, then the hub can retrieve the cached or queued video fromthe cameras at S714 and then proceed to step S706.

In a non-limiting exemplary use case, a law enforcement agent, such as afirst police officer, wears a portable, wireless camera. The firstofficer makes a routine traffic stop and starts recording video via theportable, wireless camera. The camera transmits its video to a hubdevice which is located in the first officer's squad car. The hubreceives video collected from the first officer's portable, wirelesscamera and transmits the video to a CUD that connects to a wirelesscommunication uplink. The communication uplink transfers the video datastream to the police station where a second officer views the live videostream in real-time. The CUD in the squad car acts as a router betweenthe hub in the squad car and the police station. The RTSP connection tothe hub is routed through the CUD and is used to provide users with realtime/interactive access to the video.

Unfortunately, transmission of the camera's video data to the hubbecomes interrupted and the second officer viewing the live video streamexperiences a frozen frame for, for example, 30 seconds. After 30seconds, the second officer experiences live video stream again. Whenthe routine traffic stop concludes by the first officer, the secondofficer recalls the stored video from the routine traffic stop. Thistime when the second officer views the event, there is no frozen frameor gap or break in the video stream, and the entire event is availablefor viewing.

During the routine traffic stop, the camera recorded live video data, orfirst video record/database of video, stored the video data in a storagedevice located within and transmitted the video data to the hub. Whenthe interruption of transmitting this video data to the hub occurred for30 seconds, software or the first software application, located in thehub of the officer's squad car monitored the wireless channel betweenthe camera and the hub to determine when it was restored. When thatchannel was again robust and able to support video data transmission,the software read lost video data (during the time when communicationwas disrupted) from the storage device located on the camera and savedit within the camera video previously stored at the hub. The video datawas then stored in a manner such that when reviewed later, the cameravideo data was continuous and without interruption, thus the secondvideo record/database of video.

Initially, the second officer and/or the remote client, via the secondsoftware application, is able to view the live video data in real-timeor the first video record/database of video, both of which may containgaps or breaks in the video stream. At a later time, the second officerand/or the remote client, via the second software application, is ableto view the entire event or second video record/database of videowithout gaps or breaks. This entire event/second video record/databaseof video is controlled by the first software application. In oneembodiment, the second officer/remote client may watch either the livevideo/first video or the entire event/second video after the entireevent/second video becomes available. In another embodiment, the secondofficer/remove client may only watch the entire event/second video afterit becomes available.

While the specification has been described in detail with respect tospecific embodiments of the invention, it will be appreciated that thoseskilled in the art, upon attaining an understanding of the foregoing,may readily conceive of alterations to, variations of, and equivalentsto these embodiments. These and other modifications and variations tothe present invention may be practiced by those of ordinary skill in theart, without departing from the spirit and scope of the presentinvention. Furthermore, those of ordinary skill in the art willappreciate that the foregoing description is by way of example only, andis not intended to limit the invention. Thus, it is intended that thepresent subject matter covers such modifications and variations.

What is claimed:
 1. A method for communication, of video forsynchronization, in a portable wearable camera, the method comprising:capturing first video data; transmitting, to a wireless hub device, thefirst video data via a video data channel; capturing second video data;detecting that the video data channel has become unable to support fullresolution video transmission; responsive to the detection, storing thesecond video data; receiving a control request via a control channel,from the wireless hub device, for the second video data; capturing thirdvideo data; and transmitting, to the wireless hub device, the thirdvideo data via the video data channel and the second video data via thecontrol channel.
 2. The method of claim 1, wherein the first video data,the second video data and the third video data are timestamped using ahash table.
 3. The method of claim 1, wherein the first video data, thesecond video data and the third video data are synchronizable accordingto gap synchronization based on one or more timestamps of the firstvideo data, one or more timestamps of the second video data and one ormore timestamps of the third video data.
 4. The method of claim 1,wherein the video data channel is more time sensitive than the controlchannel.
 5. The method of claim 1, wherein the wireless hub device isoperable while located within a car.
 6. The method of claim 1, whereinthe third video data is transmitted responsive to a detection that thevideo data channel has become able to support full resolution videotransmission.
 7. A portable wearable camera for communication, of videofor synchronization, the portable wearable camera comprising: a videocapture mechanism configured to capture first video data; a transmitteroperatively coupled to the video capture mechanism, the transmitterconfigured to transmit, to a wireless hub device, the first video datavia a video data channel; the video capture mechanism configured tocapture second video data; a receiver and a processor operativelycoupled to the video capture mechanism, the receiver and the processorconfigured to detect that the video data channel has become unable tosupport full resolution video transmission; responsive to the detection,the processor configured to store the second video data in a storage;the receiver configured to receive a request via a control channel, fromthe wireless hub device, for the second video data; the video capturemechanism configured to capture third video data; and the transmittingconfigured to transmit, to the wireless hub device, the third video datavia the video data channel and the second video data via the controlchannel.
 8. The portable wearable camera of claim 7, wherein the firstvideo data, the second video data and the third video data aretimestamped using a hash table.
 9. The portable wearable camera of claim7, wherein the first video data, the second video data and the thirdvideo data are synchronizable according to gap synchronization based onone or more timestamps of the first video data, one or more timestampsof the second video data and one or more timestamps of the third videodata.
 10. The portable wearable camera of claim 7, wherein the videodata channel is more time sensitive than the control channel.
 11. Theportable wearable camera of claim 7, wherein the wireless hub device isoperable while located within a car.
 12. The portable wearable camera ofclaim 7, wherein the third video data is transmitted responsive to adetection that the video data channel has become able to support fullresolution video transmission.
 13. A wireless hub device forcommunication, of video for synchronization, the wireless hub devicecomprising: a receiver configured to receive, from a portable wearablecamera, first video data via a video data channel; a processoroperatively coupled to the receiver, the receiver and the processorconfigured to detect that the video data channel has become able tosupport full resolution video transmission; responsive to the detection:the processor configured to generate a request for the second videodata; and a transmitter operatively coupled to the processor, thetransmitter configured to transmit, to the portable wearable camera, therequest via a control channel for the second video data; and thereceiver configured to receive, from the portable wearable camera, thirdvideo data via the video data channel and second video data via thecontrol channel.
 14. The wireless hub device of claim 13, wherein thefirst video data, the second video data and the third video data aretimestamped using a hash table.
 15. The wireless hub device of claim 13,wherein the first video data, the second video data and the third videodata are synchronizable according to gap synchronization based on one ormore timestamps of the first video data, one or more timestamps of thesecond video data and one or more timestamps of the third video data.16. The wireless hub device of claim 13, wherein the video data channelis more time sensitive than the control channel.
 17. The wireless hubdevice of claim 13, wherein the wireless hub device is operable whilelocated within a car.
 18. The wireless hub device of claim 17, whereinthe car is a law enforcement car.
 19. The wireless hub device of claim17, wherein the car is a police car.
 20. The wireless hub device ofclaim 17, wherein the car is a squad car.